package cn.hp.domain;

import java.util.ArrayList;
import java.util.List;

public class Role {
	private int id; 
	private String roleName; 
	private String roleDesc;
	
	//一个角色可以被多个用户所拥有
	private List<SysUser> userList=new ArrayList<SysUser>();
	//一个角色可以有多个权限
	private List<Permission> permissionList=new ArrayList<>();
	
	
	
	public List<SysUser> getUserList() {
		return userList;
	}
	public void setUserList(List<SysUser> userList) {
		this.userList = userList;
	}
	public List<Permission> getPermissionList() {
		return permissionList;
	}
	public void setPermissionList(List<Permission> permissionList) {
		this.permissionList = permissionList;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getRoleDesc() {
		return roleDesc;
	}
	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}
	@Override
	public String toString() {
		return "Role [id=" + id + ", roleName=" + roleName + ", roleDesc=" + roleDesc + "]";
	}
	
	
	
	
}
